
#pragma once
#include <d3dx9.h>
#include "MeshNodeBase.h"

class CModel;
class _ModelRCDes;

class CRigidMeshNode : public CMeshNodeBase
{
	friend class CModelRender;
	friend class CModelStructTransf;

public:
	CRigidMeshNode();
	CRigidMeshNode(CModel* pModel,const int& iType , const int& iIndex);
	virtual ~CRigidMeshNode();

protected:
	virtual void SerialD3D(CIArchive& ar);
	virtual void SerialMem(CIArchive& ar);//to data transform from old;

	virtual void Term();
	void Update(const float& fElapsedTime);
	void SetParentWorldMat();

protected:
	D3DMATERIAL9 m_D3DMaterial;
	CModel*      m_pParentModel;
	D3DXMATRIX*  m_pMatParentWorld;
};
